* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body {
    background-color: skyblue;
    color: white;
    font-family: sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.container {
    background-color: rgb(0, 0, 0, .4);
    padding: 20px 40px;
    border-radius: 5px;
}

.container h2 {
    margin-bottom: 30px;
    text-align: center;
}

.btn {
    cursor: pointer;
    background-color: lightblue;
    border: 0;
    border-radius: 5px;
    width: 100%;
    padding: 15px;
    font-size: 16px;
}

.btn:focus {
    /* outline: 2px solid pink; */
    outline: 0;
}

.btn:active {
    transform: scale(.95);
}

.text a {
    text-decoration: none;
    color: lightblue;
}

.text {
    margin-top: 30px;
}

.fr {
    position: relative;
    width: 300px;
    margin: 20px 0 40px;
}

.fr input {
    background-color: transparent;
    border: 0;
    border-bottom: 2px solid white;
    display: block;
    width: 100%;
    padding: 15px 0;
    font-size: 18px;
    color: white;
}

.fr input:focus {
    outline: 0;
    border-bottom-color: lightblue;
}

.fr input:valid {
    border-bottom-color: lightblue;
}

.fr label {
    position: absolute;
    left: 0;
    top: 15px;
}

.fr label span {
    display: inline-block;
    font-style: 18px;
    transition: all .3s ease;
}

.fr input:focus+label span,
.fr input:valid+label span {
    transform: translateY(-30px);
    color: lightblue;
}